package com.itheima.rocket;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.itheima.rocket.serivce.RocketService;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void open(View view) {
		startService(new Intent(this,RocketService.class));

	}

	public void close(View view) {
		stopService(new Intent(this,RocketService.class));

	}
}
